//
//  UIView+QHExtension.h
//  B
//
//  Created by lanou on 16/5/6.
//  Copyright © 2016年 裴启航. All rights reserved.
//
#define DisPlayTime  1.5       //弹窗显示存在时间

#import <UIKit/UIKit.h>
//=========================弹窗位置======================//
typedef enum{
    TOP,                   //顶部
    CENTER,                //中心
    BELOW,                 //底部
}POSTION_TYPE;


@interface UIView (QHExtension)
// 赋值及获取frame
@property (nonatomic, assign) CGFloat x;

@property (nonatomic, assign) CGFloat y;

@property (nonatomic, assign) CGPoint origin;

@property (nonatomic, assign) CGFloat width;

@property (nonatomic, assign) CGFloat height;

@property (nonatomic, assign) CGSize size;

@property (nonatomic, assign) CGFloat centerX;

@property (nonatomic, assign) CGFloat centerY;

@property (nonatomic,assign)CGFloat X_width;        //返回视图的x坐标加上宽度;
@property (nonatomic,assign)CGFloat Y_height;       //返回视图的y坐标加上高度;
// 弹窗
//=========================弹出提示====================//
- (void)popMessageWithTitle:(NSString *)title postion:(POSTION_TYPE)postion;
//=========================弹出菜单====================//
- (void)popMenuWithTitles:(NSArray *)titles frame:(CGRect)frame taget:(id)taget action:(SEL)action;
//=========================关闭菜单====================//
-(void)disMissMenu;
//=========================显示菊花====================//
-(void)starLoadingOpenInteraction:(BOOL)action title:(NSString *)title;
//=========================关闭菊花====================//
-(void)endLoding;
//=========================菊花状态====================//
-(BOOL)isloading;
//=========================顶部窗口====================//
-(void)tipWithTitle:(NSString *)title;

@end
